﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace S.Produce.Infrastructure.Migrations
{
    public partial class 添加种母断奶表 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Weanings",
                columns: table => new
                {
                    SwId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Earbugles = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    Head = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    WeaningDate = table.Column<DateTime>(type: "datetime2", nullable: true),
                    lacationDays = table.Column<int>(type: "int", maxLength: 50, nullable: true),
                    Currentbuilding = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    Currentfield = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    Transferbuilding = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    Transferfileld = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    Weaningnumber = table.Column<int>(type: "int", nullable: true),
                    WeaningAllweight = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
                    Weaningweight = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
                    Weaningreason = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
                    CreateBy = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    CreateDate = table.Column<DateTime>(type: "datetime2", nullable: true),
                    UpdateBy = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    UpdateDate = table.Column<DateTime>(type: "datetime2", nullable: true),
                    IsDel = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Weanings", x => x.SwId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Weanings");
        }
    }
}
